//
//  ZYCProtalNoticeImageHeaderView.m
//  ZDSC
//
//  Created by ZDTX on 2021/8/19.
//

#import "ZYCProtalNoticeImageHeaderView.h"
@interface ZYCProtalNoticeImageHeaderView ()

@property (nonatomic, strong) UILabel *titleLabel;
@end

@implementation ZYCProtalNoticeImageHeaderView

- (void)setTitleString:(NSString *)titleString{
    _titleString = titleString;
    _titleLabel.text = titleString;
}

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubview:self.titleLabel];

        [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).offset(16.0f);
            make.centerY.equalTo(self);
        }];
    }
    return self;
}

- (UILabel *)titleLabel {
    if (!_titleLabel) {
        _titleLabel = [UILabel LabelWithFont:kSystemBoldFont(16.0f) titleColor:HEX_RGB(@"666666") textAlignment:ZZTextAlignmentLeft];
    }
    return _titleLabel;
}
@end
